package saas.dev.clouduserconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import saas.dev.clouduserconsumer.service.impl.UserTestServiceImpl;

/**
 * @ClassName : UserTestService
 * @Author : y1
 * @Date: 2021/4/28 23:57
 * @Description : 用户 消费者 openFeign 测试类
 */
@FeignClient(name = "user-provide",fallback = UserTestServiceImpl.class)
public interface UserTestService {
    /**
     * 测试feign调用生产者
     * @return
     */
    @GetMapping("/test")
    String testOpenFeign();
}
